#*******************************************************************
#* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        *
#*                                                                 *
#*  NOTE      = Oracle协议分析
#*  DATE      =
#*******************************************************************

#共通参数
include                 ../../../dist/dev/include/apmmodule/Makefile_comm.mk

INCLUDES                =  -I. -I$(LIB_I_APM_COMM) -I$(LIB_I_APM_MODULE)
LIBS                    = -lzlog -lpthread -luuid -lz
CFLAGS          += -fPIC -DORA_CHK_BATCH_COUNT

CFLAGS          += $(CFLAGS_EXT)
CFLAGS          += $(CFLAGS_UTEST)

LIBS                    += $(LIBS_EXT)

#-DORA_CHK_BATCH_COUNT             检查batch count的最大值

include                 $(APMMODULE)/Makefile_config.mk

MODULE_VERSION          := $(COMM_FRAMEWORK_VER).$(L7_VERSION)
TARGET_LIB_VER          := $(L7_NAME)_$(MODULE_VERSION).so

MODULE_SOURCE_FILES     := $(shell find . -name "*.c" -o -name "*.h" | sed 's|./||')

all: prepare $(TARGET_LIB_VER)

$(TARGET_LIB_VER): $(MODULE_SOURCE_FILES)
	$(CX) -shared $(CFLAGS) $(filter %.c,$(MODULE_SOURCE_FILES)) $(LIB_A_APM_MODULE) $(LIB_A_APM_COMM) -o $@ $(INCLUDES) $(LIBS)

include         $(APMMODULE)/Makefile_pre.mk

include         $(APMMODULE)/Makefile_dist.mk

#EOF

